/*
*
*       Celestial, Jessie Bryan D.
*       IT-311(3:30 - 4:30 MWF)
*
*
*
*/
package jccflux;
public class TreeNode
{
     private TreeNode left;
     private TreeNode right;

     private TreeNode parent;
     private Object item;
     public TreeNode(Object item)
     {
        this.item = item;
     }
     public void setItem(Object item)
     {
        this.item = item;

     }
     public void setLeft(TreeNode left)
     {
        this.left = left;
        left.setParent(this);
     }
     public void setRight(TreeNode right)
     {
        this.right = right;
        right.setParent(this);
     }
     public void setParent(TreeNode parent)
     {
        this.parent = parent;

     }
     public Object getItem()
     {
        return item;
     }
     public TreeNode getParent()
	 {
	    return parent;
     }
     public TreeNode getLeft()
     {
        return left;
     }
     public TreeNode getRight()
     {
        return right;
     }

}//end of class
